@import '~@/thems/joyGlobal.less';
.folderbox {
  height: 100%;
  // overflow-y: auto;
}
.toolBox {
  height: 35px;
  font-size: 18px;
  line-height: 18px;
  padding-bottom: 5px;
  .marginLeft {
    margin-left: 60px;
  }
  .left {
    float: left;
    border: solid 1px #ccc;
    border-radius: 5px;
    overflow: hidden;
  }
  .right {
    float: right;
    border: solid 1px #ccc;
    border-radius: 5px;
  }
  i {
    padding: 4px;
    vertical-align: middle;
  }
  span {
    border-left: solid 1px #ccc;
    font-size: 15px;
    padding: 5px 10px;
  }
  :global {
    i.active {
      background: #6d6d6d;
      color: #fff;
    }
  }
}
.listHead {
  cursor: pointer;
  -webkit-transition: all ease 0.3s;
  transition: all ease 0.3s;
  user-select: none;
  display: flex;
  height: 24px;
  margin-bottom: 5px;
  border-bottom: solid 1px #ccc;
  .fileds {
    background: #f0f0f0;
    padding: 0 0 5px 5px;
    position: relative;
    i {
      font-size: 10px;
      float: right;
      margin: 5px 10px;
      transform: scale(0.8);
    }
  }
  .fileds:not(:last-child):after {
    content: '';
    position: absolute;
    background: #ccc;
    width: 1px;
    right: 0;
    top: 2px;
    bottom: 2px;
  }
  .fileds:first-child {
    flex: 1;
  }
  .fileds:nth-child(2) {
    width: 180px;
  }
  .fileds:nth-child(3) {
    width: 90px;
  }
  .fileds:nth-child(4) {
    width: 90px;
  }
}
.fileItem {
  cursor: pointer;
  -webkit-transition: all ease 0.3s;
  transition: all ease 0.3s;
  user-select: none;
  padding: 1px;
  border-radius: 3px;
  &.list {
    background: #fefefe;
    overflow: hidden;
    display: flex;
    margin: 2px;
    .flexMax {
      flex: 1;
    }
    .fileds {
      padding: 0 5px;
      .iconBox {
        width: 16px;
        height: 16px;
        margin: 0 auto;
        font-size: 16px;
      }
      .nameBox {
        text-align: center;
        height: 40px;
        overflow: hidden;
        line-height: 18px;
        text-overflow: ellipsis;
        padding: 0 8px;
        font-size: 13px;
      }
      .imageBox {
        width: 16px;
        height: 16px;
        display: inline-block;
        margin: 0 auto;
        //.border: 1px solid #eee;
        line-height: 16px;
        text-align: center;
        overflow: hidden;
        img {
          max-width: 16px;
          max-height: 16px;
          width: auto;
          height: auto;
          margin: 0 auto;
        }
      }
    }
    .fileds:nth-child(2) {
      width: 180px;
    }
    .fileds:nth-child(3) {
      width: 90px;
    }
    .fileds:nth-child(4) {
      width: 90px;
    }
  }

  &.grid {
    margin: 10px;
    float: left;
    width: 100px;
    background: #fefefe;
    overflow: hidden;
    .iconBox {
      width: 70px;
      height: 70px;
      margin: 0 auto;
      font-size: 50px;
    }
    .nameBox {
      text-align: center;
      height: 40px;
      overflow: hidden;
      line-height: 18px;
      text-overflow: ellipsis;
      padding: 0 8px;
      font-size: 13px;
    }
    .imageBox {
      width: 60px;
      height: 60px;
      margin: 0 auto;
      margin-top: 10px;
      border: 1px solid #eee;
      line-height: 56px;
      text-align: center;
      overflow: hidden;
      img {
        max-width: 56px;
        max-height: 56px;
        width: auto;
        height: auto;
        margin: 0 auto;
      }
    }
  }
  .iconBox {
    text-align: center;
  }
  &:hover {
    background-color: #eee;
  }
  &.active {
    background: #1890ff;
    color: #fff;
  }
  &.rightActive {
    outline: solid 1px #1890ff;
    outline-offset: 1px;
  }
}

.menu {
  display: inline-block;
  min-width: 140px;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 180px;
  z-index: 99999;
  background: #fafafa;
  border-radius: 2px;
  -webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.25) !important;
  border-right: 0;
  :global {
    .ant-menu-item {
      height: 30px;
      line-height: 30px;
      margin: 5px 0 !important;
      overflow: hidden;
      //   &:last-child {
      //     border-bottom: 0;
      //   }
      &:hover {
        background: #eee;
        color: #000;
      }
    }
  }
}
